package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Goods;
import com.atguigu.jxc.entity.query.QueryGoods;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface GoodsService {


    ServiceVO getCode();


    Map<String, Object> findPageByQueryGoods(QueryGoods queryGoods);

    void saveOrUpdate(Integer goodsId, Goods goods);

    Boolean delete(Integer goodsId);

    Map<String, Object> getNoInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    Map<String, Object> getHasInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    Boolean updateInventory(Integer goodsId, Integer inventoryQuantity, double purchasingPrice);

    Map<String, Object> listAlarm();
}
